package com.goodfox.web.biz.forest.entity;

import java.io.Serializable;

import com.goodfox.web.generic.provide.annotation.DbEntity;
import com.goodfox.web.generic.provide.annotation.DbField;

@DbEntity(comment="林地四至",table="WOODLAND_FOUR")
public class WoodlandFour implements Serializable{
	@DbField(comment="四至ID",column="FOUR_ID",pk=true,export=false,javaType="String",dataType="VARCHAR2",required=true,maxLength=50)
	private String fourId;

	@DbField(comment="林地ID",column="WOOD_ID",export=false,javaType="String",dataType="VARCHAR2",maxLength=50)
	private String woodId;

	@DbField(comment="四至名称",column="FOUR_NAME",javaType="String",dataType="VARCHAR2",maxLength=100,required=true)
	private String fourName;

	@DbField(comment="经度",column="LONGITUDE",export=false,javaType="Long",dataType="NUMBER",maxLength=22)
	private Long longitude;

	@DbField(comment="纬度",column="LATITUDE",export=false,javaType="Long",dataType="NUMBER",maxLength=22)
	private Long latitude;

	@DbField(comment="X坐标",column="COR_X",export=false,javaType="String",dataType="VARCHAR2",maxLength=20)
	private String corX;

	@DbField(comment="Y坐标",column="COR_Y",export=false,javaType="String",dataType="VARCHAR2",maxLength=20)
	private String corY;

	@DbField(comment="显示顺序",column="SORT",export=false,javaType="Long",dataType="NUMBER",maxLength=22)
	private Long sort;
	
	@DbField(comment="XY坐标",direct=false,javaType="String",dataType="VARCHAR2",remark="以、号分隔")
	private String corXY;

	public String getFourId(){
		return this.fourId;
	}
	public void setFourId(String fourId){
		this.fourId=fourId;
	}

	public String getWoodId(){
		return this.woodId;
	}
	public void setWoodId(String woodId){
		this.woodId=woodId;
	}

	public String getFourName(){
		return this.fourName;
	}
	public void setFourName(String fourName){
		this.fourName=fourName;
	}

	public Long getLongitude(){
		return this.longitude;
	}
	public void setLongitude(Long longitude){
		this.longitude=longitude;
	}

	public Long getLatitude(){
		return this.latitude;
	}
	public void setLatitude(Long latitude){
		this.latitude=latitude;
	}

	public String getCorX() {
		return corX;
	}
	public void setCorX(String corX) {
		this.corX = corX;
	}
	
	public String getCorY() {
		return corY;
	}
	public void setCorY(String corY) {
		this.corY = corY;
	}
	
	public Long getSort() {
		return sort;
	}
	public void setSort(Long sort) {
		this.sort = sort;
	}
	
	public String getCorXY() {
		if(corXY==null || corXY.equals("")){
			corXY=sort+"："+corX+"、"+corY;
		}
		return corXY;
	}
	public void setCorXY(String corXY) {
		this.corXY = corXY;
	}

}